package com.ruoyi.oss.entity;


public enum OssEnum {

    MINIO("minio", 1);

    final String type;
    final int category;

    public static OssEnum of(String type) {
        if (type == null) {
            return null;
        } else {
            OssEnum[] values = values();
            OssEnum[] var2 = values;
            int var3 = values.length;

            for(int var4 = 0; var4 < var3; ++var4) {
                OssEnum ossEnum = var2[var4];
                if (ossEnum.type.equals(type)) {
                    return ossEnum;
                }
            }

            return null;
        }
    }

    public String getType() {
        return this.type;
    }

    public int getCategory() {
        return this.category;
    }

    private OssEnum(final String type, final int category) {
        this.type = type;
        this.category = category;
    }
}
